//
//  VCProgressHud.h
//

#import <UIKit/UIKit.h>
#import <AvailabilityMacros.h>


typedef NS_ENUM(NSUInteger, VCProgressHUDMaskType) {
    VCProgressHudMaskTypeNone = 1, // allow user interactions while HUD is displayed
    VCProgressHudMaskTypeClear, // don't allow
    VCProgressHudMaskTypeBlack, // don't allow and dim the UI in the back of the HUD
    VCProgressHudMaskTypeGradient // don't allow and dim the UI with a a-la-alert-view bg gradient
};

@interface VCProgressHud : UIView

- (instancetype)initWithSuperView:(UIView *)parent;

- (void)showWithStatus:(NSString*)status;
- (void)dismiss;

- (void)dismissWithStatus:(NSString*)string error:(BOOL)error;
- (void)dismissWithOperateStauts:(NSString *)string imageName:(NSString *)name afterDelay:(NSTimeInterval)seconds;

- (void)setStatus:(NSString *)string;
- (BOOL)isVisible;

@end
